package com.igeek.collateral.service;

import com.igeek.collateral.dto.ChildDto;
import com.igeek.collateral.dto.FatherDto;
import com.igeek.collateral.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.collateral.vo.MenuTableVo;
import com.igeek.collateral.vo.MenuVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-07-17
 */
public interface IMenuService extends IService<Menu> {

    List<MenuVo> findAll();

    List<MenuTableVo> findAllMenu();


    boolean addF(FatherDto fatherDto);

    boolean addS(ChildDto childDto, Integer fatherMenuId);

    List<Menu> selectFather();

    boolean upadateSonMenu(ChildDto childDto, Integer fatherMenuId);

    boolean upadateFatherMenu(FatherDto fatherDto);

    boolean deleteById(Integer id);
}
